{include file="public/header"}
<div class="container">
    <div class="row">
        <div class="row__7y">
            <div class="home__nav">
                <ol class="breadcrumb">
                    <span>您现在的位置：</span>
                    <li><a href="/">首页</a></li>
                    <li class="active">搜索</li>
                </ol>
            </div>
        </div>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="search-result">
            <div class="search-result__header">
                <h3>搜索页</h3>
            </div>
            <div class="search-result__body">
                <div class="search-result__body__key"><span>关键字“{$data['key']}”的搜索结果如下</span></div>
                {volist name="data.list" id="value" empty="$empty"}
                <div class="search-result__body__content">
                    <?php
                    $url='';
                    switch($data['list'][$i-1]['bundle'])
                        {
                            case 'article':$url="article_detail/page_detail"; break;
                            case 'doctor':$url="department/department_doctor_detail"; break;
                            case 'page':$url="common/page"; break;
                        }
                    ?>
                    <div class="search-result__body__content__title"><a
                            href="{:Url($url)}?id={$value.data.uuid.0.value}"><span>{$value.data.title.0.value}</span></a>
                    </div>
                    <div class="search-result__body__content__summary"><a
                            href="{:Url($url)}?id={$value.data.uuid.0.value}" target="{$value.external_url}"><span>{$value.data.body.0.summary}</span></a>
                    </div>
                    <div class="search-result__body__content__time clearfix">
                        <div class="pull-left">
                            <span>{$value.data.revision_timestamp.0.value|date="Y-m-d",###}</span>
                        </div>
                        <div class="pull-right">

                            <a href="{:Url($url)}?id={$value.data.uuid.0.value}" target="{$value.external_url}">
                                <div class="red-circle"><span>></span></div>
                            </a>
                        </div>
                    </div>

                </div>
                {/volist}
            </div>
            <div class="row__7y page_zs7y">
                <div class="arcticlist-foot-page col-md-12 col-xs-12">

                    <nav aria-label="...">
                        {$data.bootstrap}
                        <form class="page_zs7y__form" action="{:Url('Search/search')}" method="get">
                            <input type="text" name="page">
                            <input type="hidden" name="key" value="{$data['key']}">
                            <input type="submit" value="GO">
                        </form>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer"}